package com.icexxx.icemock.mock;

import java.util.List;

import cn.hutool.core.util.RandomUtil;
import cn.hutool.core.util.StrUtil;

public class EnumMock implements IceMock {

	@Override
	public String mock(Integer minVal, Integer maxVal, Integer minWidth, Integer maxWidth, String enums, String key) {
		List<String> splitTrim = StrUtil.splitTrim(enums, ",");
		return RandomUtil.randomEle(splitTrim);
	}

}
